package cn.tedu.array;

import java.util.Arrays;
import java.util.Random;

public class TestRandomArray {
    public static void main(String[] args) {
        int[] a=new int[10];
        for (int i = 0; i <10 ; i++) {
            a[i]=new Random().nextInt(10);
        }
        System.out.println(Arrays.toString(a));
    }
}
